--
-- @Author:      name
-- @DateTime:    2018-03-30 23:05:48
-- @Description: 别的节点监听的消息

local skynet = require "skynet"

local OtherNode = class("OtherNode")

---------------------------------------------------------
-- Private
---------------------------------------------------------
function OtherNode:ctor(message)
	self.msg = message
	self:register()
end

function OtherNode:register()
	--global消息
	--msg:registerNode('get_person_info_req','global','offline',{'playerid','nickName','vip','face','faceUrl'})
	
	--游戏消息
	self:registerGame("reconnect_req")
	self:registerGame("niuniu_status_req")
	self:registerGame("niuniu_bank_req")
	self:registerGame("niuniu_bet_req")
	self:registerGame("niuniu_comb_req")
	self:registerGame("niuniu_changecard_req")
	--炸金花
	self:registerGame("zjh_status_req")
	self:registerGame("zjh_oper_req")
	self:registerGame("zjh_look_req")
	self:registerGame("zjh_compare_req")
	self:registerGame("zjh_com_seat_req")
	self:registerGame("zjh_giveup_req")
	--百家乐
	self:registerGame("bjl_status_req")
	self:registerGame("bjl_bet_req")
	self:registerGame("bjl_rebet_req")
	self:registerGame("bjl_remain_card_req")
	--跑得快
	self:registerGame("pdk_status_req")
	self:registerGame("pdk_next_req")
	self:registerGame("pdk_deal_req")
	self:registerGame("pdk_tip_req")
	self:registerGame("pdk_ready_req")
	self:registerGame("pdk_jipai_req")
	self:registerGame("pdk_no_auto_req")
	self:registerGame("pdk_close_vote_req")
	
	
	--中发白
	self:registerGame("zfb_status_req")
	self:registerGame("zfb_bet_req")
	self:registerGame("zfb_rebet_req")
	self:registerGame("zfb_shangzhuang_req")
	self:registerGame("zfb_remove_zhuang_list_req")
	self:registerGame("zfb_xiazhuang_req")
	self:registerGame("zfb_shangzhuang_list_req")
	self:registerGame("zfb_history_req")
	self:registerGame("zfb_no_seat_player_list_req")
	self:registerGame("zfb_player_req")

	--拼十
	self:registerGame("ps_status_req")
	self:registerGame("ps_race_bank_req")
	self:registerGame("ps_bet_req")
	self:registerGame("ps_open_card_req")
	self:registerGame("ps_player_req")


	
	--麻将
	self:registerGame("mj_cancel_req")
	self:registerGame("mj_chi_req")
	self:registerGame("mj_peng_req")
	self:registerGame("mj_gang_req")
	self:registerGame("mj_hu_req")
	self:registerGame("mj_play_card_req")
	self:registerGame("mj_ask_hai_di_req")
	self:registerGame("mj_vote_result_req")
	self:registerGame("mj_room_info_req")
	self:registerGame("mj_ready_req")


	--跑胡子
	self:registerGame("phz_status_req")
	self:registerGame("phz_hu_req")
	self:registerGame("phz_peng_req")
	self:registerGame("phz_chi_req")
	self:registerGame("phz_next_req")
	self:registerGame("phz_deal_req")
	self:registerGame("phz_ready_req")
	self:registerGame("phz_close_vote_req")
	self:registerGame("phz_jingwei_req")

	

	--房卡明牌拼十
	self:registerGame("rt_mpps_status_req")
	self:registerGame("rt_mpps_race_bank_req")
	self:registerGame("rt_mpps_bet_req")
	self:registerGame("rt_mpps_open_card_req")
	self:registerGame("rt_mpps_player_req")
	self:registerGame("rt_mpps_prepare_req")
	self:registerGame("rt_mpps_auto_prepare_req")
	self:registerGame("rt_mpps_no_seat_player_list_req")
end

function OtherNode:registerGame(msgName)	
	self.msg:registerNode(msgName,"game")
end


return OtherNode